#include "ConfReader.h"
#include "Definitions.h"
#include "Ticket.h"

/*int main(){
	char asdf[] = "tester.cpp";
//	ConfReader r(asdf);
	ConfReader r(1);
//	ConfReader *r = new ConfReader(asdf);
//	ConfReader r();
}*/

/*
int main(){
	Definitions d(1,50,1,40,1000);
	printf("Rand num=%d\n", d.getRandNum());
	return 0;
}
*/

int main(int argc, char*argv[]){
	if(argc !=3 ) {
		printf("sdfasdf, look at src.\n");
		return -1;
	}

	unsigned int worths[][2] = { 
	                    // 0 pb, 1 pb
	                    // ==========
	                    {     0, 3      },      // 0 normal number(s)
	                    {     0, 4      },      // 1 normal number(s)
	                    {     0, 7      },      // 2 normal number(s)
	                    {     7, 100    },      // 3 normal number(s)
	                    {   100, 10000  },      // 4 normal number(s)
	                    {200000, 1000000},      // 5 normal number(s)
	              };
	Definitions d(1, 50, 1, 40, 1000, worths);
	TicketLine::setDefinitions(&d);

	Ticket *t = new Ticket(atoi(argv[2]));

	for(int i=0; i<atoi(argv[1]); i++){
		t->addAllRandom();
		t->printTicket();
	}

	return 0;
}
